@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>门禁权限管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-3">
                                <#NameCon id="ruleName" name="权限组名称" />
                            </div>
                            <div class="col-sm-3">
                                <#SelectCon id="timeInfo.id" name="门禁时段" >
                                <option value=""></option>
                                    @for(timeInfo in timeInfoList){
                                    <option value="${timeInfo.id}">${timeInfo.name}</option>
                                    @}
                                </#SelectCon>
                            </div>
                            <div class="col-sm-3">
                                <#button name="搜索" icon="fa-search" clickFun="EntranceGuardRule.search()"/>
                                <#button name="重置" icon="fa-refresh" clickFun="EntranceGuardRule.reset()"/>
                            </div>
                        </div>
                        <div class="hidden-xs" id="EntranceGuardRuleTableToolbar" role="group">
                            @if(shiro.hasPermission("/door/ENTRANCE/GUARD/RULE/add")){
                            <#button name="添加" icon="fa-plus" clickFun="EntranceGuardRule.openAddEntranceGuardRule()"/>
                            @}
                            @if(shiro.hasPermission("/door/ENTRANCE/GUARD/RULE/update")){
                            <#button name="修改" icon="fa-edit" btnCss="info" clickFun="EntranceGuardRule.openEntranceGuardRuleDetail()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/door/ENTRANCE/GUARD/RULE/delete")){
                            <#button name="删除" icon="fa-remove"  btnCss="danger" clickFun="EntranceGuardRule.delete()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/door/ENTRANCE/GUARD/RULE/update")){
                            <#button name="分配人员" icon="fa-edit" btnCss="info" clickFun="EntranceGuardRule.openSelectUserToRule()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/door/ENTRANCE/GUARD/RULE/update")){
                            <#button name="分配门" icon="fa-edit" btnCss="info" clickFun="EntranceGuardRule.openSelectDoorToRule()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/door/ENTRANCE/GUARD/RULE/update")){
                            <#button name="详细信息" icon="fa-edit" btnCss="info" clickFun="EntranceGuardRule.openDetail()" space="true"/>
                            @}
                        </div>
                        <#table id="EntranceGuardRuleTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/door/ENTRANCE/GUARD/RULE/entranceGuardRule.js"></script>
@}
